import request from '@/api/request'

function orderList(data) {
    return request({
        url: '/api/leju/admin/order/list',
        method: 'get',
        data
    })
}

function orderDel(data) {
    return request({
        url: '/api/leju/admin/order/delFocus',
        method: 'get',
        data
    })
}

function orderDetail(data) {
    return request({
        url: '/api/leju/admin/order/detail',
        method: 'get',
        data
    })
}

function orderUserInfo(data) {
    return request({
        url: '/api/leju/admin/order/orderUserInfo',
        method: 'get',
        data
    })
}

function sendDone(data) {
    return request({
        url: '/api/leju/admin/order/sendDone',
        method: 'post',
        data
    })
}

function closeOrder(data) {
    return request({
        url: "/api/leju/admin/order/closeOrder",
        method: 'get',
        data
    })
}

export default {
    orderList,
    orderDel,
    orderDetail,
    orderUserInfo,
    sendDone,
    closeOrder
}